home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1993 / MacHack 1993.toast / MacHack™ 1987-1992 / MacHack™ '90 / Source Code ƒ / MPW C ƒ / Vinnie's MPW Hacks / MF.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-04  |  1.0 KB  |  64 lines  |  [TEXT/MPS ]

  1. #include <types.h>
  2. #include <Memory.h>
  3.  
  4. #define    piStateReady    1
  5. #define    piStateNull        2
  6. #define    piStateBackRun    3
  7. #define    piStateRun        4
  8. #define    piStateUpdate    5
  9. #define    piStateDebug    6
  10. #define    piStateMoving    7
  11. #define piStatePuppet    8
  12. #define    piStateSleeping    9
  13.  
  14. typedef struct    {
  15.     short    MFProcessID;
  16.     long    MFProcessType;
  17.     short    resv;
  18. } ProcessListRec, *ProcessListPtr;
  19.  
  20.  
  21. typedef struct    {
  22.     short    MFProcessState;
  23.     short     MFProcessID;
  24.     char    MFType[4];
  25.     char    MFCreator[4];
  26.     long    unknown1;
  27.     THz        MFWorldPtr;
  28.     long    TaskMode;
  29.     Boolean    SuspendResume;
  30.     Boolean    BackGround;
  31.     Boolean    MFAware;
  32.     Boolean    UnknownB;
  33.     short    LauncherMFProcID;
  34.     long    MFPartitionSize;
  35.     long    StackSize;
  36.     long    Slices;
  37.     long    ApplHeapFreeMem;
  38.     char    MFApplName[31];
  39.     int        vRefNum;
  40. } ProcessDataRec,*ProcessDataPtr;
  41.  
  42.  
  43. pascal OSErr MFGetProcessList(ProcessListPtr PL, int MaxCount)    
  44.     = {
  45.         0x3f3c,
  46.         0x0001,
  47.         0xA88f
  48.         };
  49.  
  50. pascal OSErr MFGetMFVersion(Ptr vp)    
  51.     = {
  52.         0x3f3c,
  53.         0x0002,
  54.         0xA88f
  55.         };
  56.         
  57.  
  58. pascal OSErr MFGetProcessData(short int ProcId, ProcessDataPtr Pd)    
  59.     = {
  60.         0x3f3c,
  61.         0x0017,
  62.         0xA88f
  63.         };
  64.